<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="icon" href="data:;base64,=">
    <script src="/static/js/jquery-2.1.3.min.js"></script>
    <script src="/static/vue/vue.js"></script>
</head>
<body>
<input type="button" value="测试" onclick="ajaxloding()" />
<div id="usermessage"></div>
<div id="app">
    {{message}}
</div>

<script>
    new Vue({
        el: '#app',
        data: {
            message: 'Hello Vue!ffffff'
        }
    })
</script>
<script>
    var getdata=0;
    function ajaxloding(){
        $.ajax({
            //请求方式
            type : "POST",
            //请求的媒体类型
            contentType: "application/json;charset=UTF-8",
            //请求地址
            url : "http://localhost:8089/operation/selectOperation",
            //数据，json字符串
            data : JSON.stringify({"mobile":"admin","password":"123456"}),
            //请求成功
            success : function(result) {
                console.log(result);
            },
            //请求失败，包含具体的错误信息
            error : function(e){
                console.log(e);
                console.log(e.statusText)
            }
        });

        $("#usermessage").text(getdata)
    }
</script>
</body>
</html>